﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SenerPro;

namespace MensUnoShop.Models
{
    public class ProductFactory
    {
        private static Logger _log = new Logger(Config.logpath);
        public static List<Product> GetProductList(Guid mokguid)
        {
            DBProduct dbp = new DBProduct();
            List<Product> pdlist = dbp.GetProductList(mokguid);
            return pdlist;
        }

        public static Product GetProduct(Guid pdguid)
        {
            DBProduct dbp = new DBProduct();
            Product pd = dbp.GetProduct(pdguid);
            return pd;
        }

        public static List<Specification> GetSpecList(Guid pdguid)
        {
            DBProduct dbp = new DBProduct();
            List<Specification> speclist = dbp.GetSpecList(pdguid);
            return speclist;
        }

        public static Specification GetSpec(Guid spguid)
        {
            DBProduct dbp = new DBProduct();
            Specification spec = dbp.GetSpec(spguid);
            return spec;
        }
    }
}